package org.flint92.springboot.mybatis.domain;

import lombok.Getter;
import lombok.Setter;

import java.util.StringJoiner;

/**
 * @author flint92
 */
@Getter
@Setter
public class User {

    private int id;

    private String name;

    private int age;

    private Address address;

    @Override
    public String toString() {
        return new StringJoiner(", ", User.class.getSimpleName() + "[", "]")
                .add("id=" + id)
                .add("name='" + name + "'")
                .add("age=" + age)
                .add("address=" + address)
                .toString();
    }
}
